//
//  MusicDownloadCell.m
//  wAudioShare
//
//  Created by 赵帅 on 14-2-17.
//  Copyright (c) 2014年 赵帅. All rights reserved.
//

#import "MusicDownloadCell.h"

@implementation MusicDownloadCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(IBAction)deleteButtonPressed:(id)sender
{
    if([_delegate respondsToSelector:@selector(deleteButtonPressed:)])
    {
        [_delegate performSelectorOnMainThread:@selector(deleteButtonPressed:) withObject:self.downloadURI waitUntilDone:YES];
    }
}

-(IBAction)actionButtonPressed:(id)sender
{
    if([_delegate respondsToSelector:@selector(actionButtonPressed:)])
    {
        [_delegate performSelectorOnMainThread:@selector(actionButtonPressed:) withObject:self.downloadURI waitUntilDone:YES];
    }
}

@end
